package main

import (
	"fmt"
)

func test_pipe() {

	//pipe := make(chan int ,3)
	var pipe chan int
	pipe = make(chan int, 3)

	pipe <- 21
	pipe <- 4
	pipe <- 6
	//pipe <- 4
	//pipe <- 5

	sum = <-pipe

	//var a int
	//a <- pipe

	/*a =<- pipe
	fmt.Println(a)

	pipe <- 4*/

	fmt.Println(len(pipe))

}
